import request from "@/utils/request";

// 添加公告
export function insertNotice(groupId, userId, title, content) {
    return request.post('/notice//insert/?groupId=' + groupId + '&userId=' + userId + '&title=' + title + '&content=' + content)
}

// 获取群公告列表
export function listNotice(groupId) {
    return request.get('/notice/list/' + groupId)
}

// 删除公告
export function delNotice(id) {
    return request.get('/notice/del/' + id)
}


// 更新公告
export function updateNotice(id, title, content) {
    return request.post('/notice/update/' + id + '?title=' + title + '&content=' + content)
}
